<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>字体大小_frm</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <style type="text/css">
    body { background: #f7f9f8;}
    .aui-card {
        margin-top: 15px;
    }
    .aui-radio:checked:after {font-size: 0;}
    .aui-radio:checked:before {font-size: 0;}
    </style>
</head>
<body>
    <div class="aui-content aui-card">
        <div class="aui-form">
            <div class="aui-input-row">
                <label class="aui-input-addon" style="font-size: 1em">小</label>
                <div class="aui-pull-right"><input class="aui-radio" type="radio" name="font" id="font_1" onclick="setSize(1)"></div>
            </div>
            <div class="aui-input-row">
                <label class="aui-input-addon" style="font-size: 1.1em">中</label>
                <div class="aui-pull-right"><input class="aui-radio" type="radio" name="font" id="font_2" onclick="setSize(2)"></div>
            </div>
            <div class="aui-input-row">
                <label class="aui-input-addon" style="font-size: 1.2em">大</label>
                <div class="aui-pull-right"><input class="aui-radio" type="radio" name="font" id="font_3" onclick="setSize(3)"></div>
            </div>
            <div class="aui-input-row">
                <label class="aui-input-addon" style="font-size: 1.3em">特大</label>
                <div class="aui-pull-right"><input class="aui-radio" type="radio" name="font" id="font_4" onclick="setSize(4)"></div>
            </div>
        </div>
    </div>

</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/zepto.min.js"></script>
<script type="text/javascript" src="../script/common.js" ></script>
<script type="text/javascript">
	apiready = function () {
		var contentFontSize = $api.getStorage('contentFontSize');
		$("#font_"+contentFontSize).prop("checked", true );
	};
	
    function setSize(index){
   	 	$api.setStorage('contentFontSize', index);
    }
</script>
</html>